package com.fmh.jwt;

import org.apache.shiro.authc.AuthenticationToken;

/**
 * @author 房梦豪
 * @version 1.0
 * @description: TODO
 * @date 2021/9/28 15:54
 */
public class JWTToken implements AuthenticationToken {

    //    密钥
    private String token;

    public JWTToken(String token) {
        this.token = token;
    }

    @Override
    public Object getPrincipal() {
        return token;
    }

    @Override
    public Object getCredentials() {
        return token;
    }
}
